import Vue from "vue";
import VueRouter from "vue-router";
// import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: '',
    redirect: '/homepage'
  },
  {
    path: "/homepage",
    name: "homepage",
    component: () => import("@/views/homepage.vue"),
  },
  // 搜索
  {
    path: "/searchList",
    name: "searchList",
    component: () => import("@/views/searchList.vue"),
  },
  // 总览
  {
    path: "/overview",
    name: "overview",
    component: () => import("@/views/overview/overview.vue"),
  },
  {
    path: "/detail/bankAccount",
    name: "bankAccount",
    component: () => import("@/views/detailInfo/bankAccount.vue"),
  },

  {
    path: "/about",
    name: "About",
    component: () => import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  // base: process.env.BASE_URL,
  base: import.meta.env.BASE_URL,
  routes,
});

export default router;
